﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Common.Utilities.Excel.Export.Merged
{

   public class MergedConfig
    {

       #region 合并分类枚举

       /// <summary>
       /// 行合并
       /// </summary>
       public static short RowMergedType = 0x1;

       /// <summary>
       /// 列合并
       /// </summary>
       public static short ColumnMergedType = 0x2;


       /// <summary>
       /// 行列一起合并
       /// </summary>
       public static short AllMergedType = 0x3;

       #endregion

       #region 合并优先枚举

       /// <summary>
       /// 行优先
       /// </summary>
       public static short RowMergedTypePriority = 0x1;


       /// <summary>
       /// 列优先
       /// </summary>
       public static short ColumnMergedTypePriority = 0x2;

       #endregion

       /// <summary>
       /// 公式所在的Area
       /// </summary>
       public string AreaId { get; set; }
       
       /// <summary>
        /// 开始行号
        /// </summary>
        public string FromRow { get; set; }

        /// <summary>
        /// 开始列号
        /// </summary>
        public string FromColumn { get; set; }

        /// <summary>
        /// 结束行号
        /// </summary>
        public string ToRow { get; set; }

        /// <summary>
        /// 结束列号
        /// </summary>
        public string ToColumn { get; set; }

       /// <summary>
       ///合并的分类:
       /// 1.Row:行合并
       /// 2.Column:列合并
       /// 3.All：行列一起合并 
       /// </summary>
        public short MergedType { get; set; }

        /// <summary>
        /// 合并的优先选择
        /// 1.Row:行优先
        /// 2.Column：列优先
        /// 默认值为Row
        /// </summary>
        public short MergedTypePriority { get; set; }

        /// <summary>
        /// 是否验证其数据
        /// </summary>
        public bool NeedValid { get; set; }

       /// <summary>
       /// 是否忽略空串
       /// </summary>
        public bool IgnoreEmpty { get; set; }
       
   }
}
